[
    async function( kuo,Context,context){
        var $THIS = this;
        let $DATA = Object.assign({},this.$DATA);
        $DATA.msg = CDNHOST;
        $DATA.code = 1;
        $DATA.data = {};
        let  $features = await Kuoplus(kuo.class);
        if($features.configure['采集密码']){
            delete($features.configure['采集密码']);
        }
        if($features.configure['通信密码']){
            delete($features.configure['通信密码']);
        }
        let ID = Mode("Tools").Int(kuo.post["id"]?kuo.post["id"]:0);
        let $MEYE =Mode("Tools").Int($features.configure['列表页码']?$features.configure['列表页码'][1]:10);
        let PAGE = Mode("Tools").Int(kuo.post["page"]?kuo.post["page"]:1);
        let $WWH = {'off':2};
        if($MEYE < 1){
            $MEYE = 10;
        }else if($MEYE > 100){
            $MEYE = 100;
        }
        if(PAGE < 0){
            PAGE = 1;
        }
        if(PAGE == 1){
            $DATA.data.config = $features.configure;
            let $db = await db('cms_type');
            let typex =  await $db.Zhicha("id,name,keywords,describes,text1,text2,photo,url,link,char1").Where({subclass:0,off:2,displayswitch:1}).Order("sortsize desc").Select();
            let $TYPE = [];
            if(typex){
                for(var xx  in typex){
                    let xxx = typex[xx];
                    $TYPE.push($THIS.JieData(xxx,$features.configure['隐藏字段']));
                }
            }
            $DATA.data.type = $TYPE;
        }
        if(ID > 0){
            $WWH['subclass IN'] = await $THIS.TYPE_BAOHAN(ID);
        }
 
        let shuju = await  $THIS.CENTER_select($WWH,"sortsize desc,id desc",($MEYE+','+PAGE));
        $DATA.data.data = [];
        if(shuju){
            for(var iix in shuju){
                $DATA.data.data.push( $THIS.JieData(shuju[iix],$features.configure['隐藏字段']));
            }
        }
        return  json_encode($DATA);
    }
]